package com.punch.user.mapper;

import com.punch.common.vo.user.teacher.TeacherPageVO;
import com.punch.db.mapper.SuperMapper;
import com.punch.user.model.SysTeacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 教师信息表
 *
 * @author tanchangguo
 * @email 17607195327@163.com
 * @date 2020-07-21 19:10:02
 */
@Mapper
public interface SysTeacherMapper extends SuperMapper<SysTeacher> {

    int queryCount(Map<String, Object> params);

    List<TeacherPageVO> queryList(Map<String, Object> params);

    /**
     * 修改机构未审核状态下提交的教师
     *
     * @param userId 机构id
     */
    void updateUnAuditCommit(@Param("userId") Long userId);
}
